package com.zl.pojo;

/**
 * 订单详情
 */
public class OrderDetail {


    private Integer id;
    private Integer orderId;
    private Integer productId;
    private Integer quantity;//数量
    private Double cost;//消费
    private Product pd;//产品详情

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }


    public Product getPd() {
        return pd;
    }

    public void setPd(Product pd) {
        this.pd = pd;
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", productId=" + productId +
                ", quantity=" + quantity +
                ", cost=" + cost +
                ", pd=" + pd +
                '}';
    }

}
